import { navbar } from "vuepress-theme-hope";

export default navbar([
	"/",
	// "/demo/",
	{
		text: "踩坑记录",
		icon: "jilu",
		prefix: "/encounterLog/",
		link: "/encounterLog/",
		children: [
			{
				text: "Uniapp踩坑记录",
				icon: "pen-to-square",
				link: "uniapp"
			}
		]
	},
	{
		text: "代码笔记",
		icon: "charudaima",
		prefix: "/studyNote/",
		link: "/studyNote/",
		children: [
			{
				text: "CSS",
				icon: "pen-to-square",
				prefix: "css/",
				children: [
					{ text: "多行文本擦除效果", icon: "cachu", link: "erasure" },
				],
			},
			{
				text: "JAVASCRIPT",
				icon: "pen-to-square",
				prefix: "javascript/",
				children: [
					{ text: "防抖与节流", icon: "fangdou", link: "debounceAndThrottle" },
					{ text: "函数重载", icon: "zhongzai", link: "overload" },
					{ text: "原型与原型链", icon: "liantiao", link: "prototype" },
					{ text: "数组去重", icon: "quzhong", link: "ArrayDeWeight" },
				],
			},
			{
				text: "关于浏览器",
				icon: "liulanqi",
				prefix: "browser/",
				children: [
					{
						text: "浏览器渲染原理",
						icon: "xuanranye",
						link: "renderTheory"
					},
					{
						text: "浏览器的事件循环",
						icon: "shijianguoduguize",
						link: "eventCirculation"
					}
				]
			}
		]
	},
	// {
	// 	text: "鸿蒙笔记",
	// 	icon: "book",
	// 	prefix: "/HarmonyOS/",
	// 	children: [
	// 		{
	// 			text: "第三方库",
	// 			icon: "pen-to-square",
	// 			link: "thirdparty"
	// 		},
	// 		{
	// 			text: "工具网站",
	// 			icon: "pen-to-square",
	// 			link: "instrument"
	// 		}
	// 	]
	// },
	{
		text: "我的收藏",
		icon: "shoucang",
		prefix: "/collect/",
		link: "/collect/",
		children: [
			{
				text: "第三方库",
				icon: "nodejs",
				link: "thirdparty"
			},
			{
				text: "工具网站",
				icon: "gongju",
				link: "instrument"
			}
		]
	},
	"/intro"
]);
